cmake_minimum_required(VERSION 2.8)

project(my_tf)

include_directories(${PROJECT_SOURCE_DIR}/include/math)

# 添加代码文件
file(GLOB_RECURSE PROJECT_SRC "src/*.cpp")
# 添加测试文件
file(GLOB_RECURSE PROJECT_TESTS "tests/test_*.cpp")

# 添加测试可执行文件
add_executable(${PROJECT_NAME}_test  
    ${PROJECT_SRC}
    ${PROJECT_TESTS}
)

target_link_libraries(${PROJECT_NAME}_test
    gtest
    pthread
)

